asciiCorrect correct uncommon characters in a String

part of wslib

String.asciiCorrect

When a string is typed and evaluated in SuperCollider, some characters are wrongly displayed. asciiCorrect can catch these and convert them to usable values to display in GUI elements or the post window.

"blümen".postln; // -> bl√ºmen

"blümen".asciiCorrect.postln; // -> blümen

"blümen".asciiCorrect.asciiCorrect.postln; // -> blümen // no double corrections

"Avez-vous oublié vos codes d'accès - téléchargez ici".postln.asciiCorrect.postln;

w = Window( "" ).front;

w = Window( "".asciiCorrect ).front;